package org.jeecg.modules.demo.st.service.impl;

import org.jeecg.modules.demo.st.entity.StPunish;
import org.jeecg.modules.demo.st.mapper.StPunishMapper;
import org.jeecg.modules.demo.st.service.IStPunishService;
import org.jeecg.modules.demo.st.vo.StatisticsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 处分记录
 * @Author: jeecg-boot
 * @Date:   2020-01-02
 * @Version: V1.0
 */
@Service
public class StPunishServiceImpl extends ServiceImpl<StPunishMapper, StPunish> implements IStPunishService {
    @Autowired
    private StPunishMapper stPunishMapper;

    @Override
    public List<StatisticsVo> getSanctions(String stuId) {
        List<StatisticsVo> statisticsVo= stPunishMapper.getSanctions(stuId);
        return statisticsVo;
    }

    @Override
    public List<StPunish> getSchoolPunish(String stName) {
        List<StPunish> SchoolPunish= stPunishMapper.getSchoolPunish(stName);
        return SchoolPunish;
    }
}
